<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子01</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <script type="text/javascript">
        var Module = Stapes.subclass({
            constructor : function(name) {
                this.name = name;
            },

            sayName : function() {
                var xx = "My name is : " + this.name;
                console.log( xx );
                return xx;
            }
        });
        var module = new Module('Emmylou');

        var xx = module.sayName(); // 'My name is Emmylou'
        console.log( xx );
    </script>


</body>
</html>